package com.finals.media;

import com.finals.media.service.DownloadService;

import android.app.Application;
import android.content.Intent;

public class BaseApplication extends Application {

	@Override
	public void onCreate() {
		super.onCreate();
	}

	public void PlayMusic(String path) {
		Intent intent = new Intent(this, DownloadService.class);
		intent.putExtra("Action", 1);
		intent.putExtra("Path", path);
		startService(intent);
	}

	public void StopMusic() {
		Intent intent = new Intent(this, DownloadService.class);
		intent.putExtra("Action", 2);
		startService(intent);
	}

}
